
import 'package:cash_drawer/ui/login_page.dart';
import 'package:cash_drawer/ui/splash_page.dart';
import 'package:cash_drawer/ui/table_page.dart';
import 'package:flutter/cupertino.dart';

///路由名称  跳转的页面
class RouterName {
  static const String splash = 'splash'; ///开屏
  static const String login = 'login';   ///登录页
  static const String main = 'main';
  static const String table = "table";   ///桌台
  static const String more = "more"; ///更多
}

class Router{
  static Map<String, WidgetBuilder> generateRoute() {
  Map<String, WidgetBuilder> routes = {
    RouterName.splash: (context) => new SplashPage(),
    RouterName.table: (context) => new TablePage(),
    RouterName.login: (context) => new LoginPage()
  };
  return routes;
}
}